package com.cardbaobao.cardbabyclient.utils;

import android.content.Context;

/**
 * ActivityUtil
 * Created by zad
 * 2017/3/8 18:03
 */

public class ActivityUtil {
    /**
     * 获取当前Activity名称
     * @param context
     * @return
     */
    public static String getRunningActivityName(Context context) {
        String contextString = context.toString();
        return contextString.substring(contextString.lastIndexOf(".") + 1, contextString.indexOf("@"));
    }
}
